package com.toivan.mt.model;

import android.content.Context;
import android.graphics.drawable.Drawable;

import androidx.annotation.DrawableRes;
import androidx.annotation.NonNull;
import androidx.annotation.StringRes;

import com.toivan.mt.R;

public enum MtBeauty {
    WHITENESS(R.string.whiteness, R.drawable.icon_whitening),
    BLURRINESS(R.string.blurriness, R.drawable.icon_blemish_removal),
    PRECISE_SKIN(R.string.precise_skin, R.drawable.icon_precise_skin),
    ROSINESS(R.string.rosiness, R.drawable.icon_tenderness),
    CLEARNESS(R.string.clearness, R.drawable.icon_sharpness),
    BRIGHTNESS(R.string.brightness, R.drawable.icon_brightness);

    private int stringId;
    private int imageId;


    MtBeauty(@StringRes int stringId, @DrawableRes int imageId) {
        this.stringId = stringId;
        this.imageId = imageId;
    }

    public String getString(@NonNull Context context) {
        return context.getResources().getString(stringId);
    }

    public Drawable getImageDrawable(@NonNull Context context) {
        return context.getResources().getDrawable(imageId);
    }
}
